home *** CD-ROM | disk | FTP | other *** search
/ Univers Mac Interactif 42 / Univers Mac Interactif - Issue 42.iso / >interactif / Démos Voyager / PIM.DIR / 00019_Script_19 < prev    next >
Text File  |  1994-10-13  |  804b  |  47 lines

  1. on startMovie
  2.   --set the keyDownSCript to "doKey"
  3. end
  4.  
  5. on enterframe
  6.   cursor 200
  7. end
  8.  
  9. on waiting theTicks
  10.   --must be preceded by starttimer
  11.   if theTicks >= the timer then go the frame
  12. end
  13.  
  14.  
  15. on waitQT chan
  16.   cursor 200
  17.   if the movieRate of sprite chan =1 then go to the frame
  18. end
  19.  
  20. on waitSound chan
  21.   cursor 200
  22.   if  soundbusy(chan)=1 then go to the frame
  23. end 
  24.  
  25. --on doKey
  26. --  global autoPlaying,nextdemoKey,gobackKey
  27. --  if autoPlaying=1 then
  28. --    if the keycode<>nextdemoKey then
  29. --      put 0 into autoPlaying
  30. --    end if
  31. --    play done
  32. --  else
  33. --    if the keycode=gobackKey then
  34. --      play done
  35. --    end if
  36. --  end if
  37. --end
  38.  
  39. on KeyDown
  40.   global autoplaying
  41.   put 0 into autoplaying
  42.   sound stop 1
  43.   sound stop 2
  44.   unloadcast
  45.   play done
  46. end
  47.